﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Tool.hbm2ddl;
using NHibernate.Cfg;

namespace ConfigByAppconfig
{
    class Program
    {
        static void Main(string[] args)
        {
            var nhConfig = new Configuration().Configure();
            var sessionFactory = nhConfig.BuildSessionFactory();

            var schemaExport = new SchemaExport(nhConfig);
            //schemaExport.Create(true, true);
            schemaExport.SetOutputFile(@"D:\db.sql").Execute(false,false,false);
        }
    }
}
